package com.diploma.interaction.service.impl;

import com.diploma.interaction.mapper.WxxcxDlzhxxMapper;
import com.diploma.interaction.model.WxxcxDlzhxx;
import com.diploma.interaction.model.WxxcxDlzhxxExample;
import com.diploma.interaction.service.QxDlzhxxService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class QxDlzhxxServiceImpl implements QxDlzhxxService {

    @Resource
    WxxcxDlzhxxMapper qxDlzhxxMapper;

    @Override
    public List<WxxcxDlzhxx> selectByStaffIdAndPassword(String id, String password) {
        WxxcxDlzhxxExample qxDlzhxxExample=new WxxcxDlzhxxExample();
        qxDlzhxxExample.createCriteria().andSwryDmEqualTo(id).andDlzhklEqualTo(password);
        return qxDlzhxxMapper.selectByExample(qxDlzhxxExample);
    }
}
